package cn.stronglink.asset.module.dam.utils.dataJsonUtils.realtime.receive;

import cn.stronglink.asset.module.dam.entity.message.MsgRealTimeDatas;
import cn.stronglink.asset.module.dam.utils.dataJsonUtils.realtime.send.SendUtil;
import cn.stronglink.asset.module.dam.utils.factorys.common.FactoryUpdateSingleWidget;

public class SendDoorCmdToDamUtil {

	public static void handleDamDatas(MsgRealTimeDatas realDatas) {// CabinetExtMapper cabinetExtMapper) {
		
		int doorStatus = realDatas.getAwsPostdata().getSensorList()[0].getSensorDatas();
		String comm =  FactoryUpdateSingleWidget.updateSingleWidget(1, 10,(doorStatus == 1 ? "开" : "关") );
		System.out.println("门状态..." + doorStatus);
		SendUtil.sendRealTimeDatas(realDatas, comm);

	}
}
